<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
	xmlns:s="/struts-tags" xmlns:sj="/struts-jquery-tags">
	<jsp:directive.page language="java"
		contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
	<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<jsp:text>
	<![CDATA[ 				
		<script type="text/javascript" src="${pageContext.request.contextPath}/aplicacion/categoriaHardware/gestionar-categoria-hardware/js/index.js"></script>
		 ]]>
</jsp:text>
<title>Gestionar categoría de hardware</title>
</head>
<!-- Head -->
<body>
	<div class="row">
		<div align="center">
			<h1>Gestionar Categorías de Hardware</h1>
		</div>

	</div>
	<div class="row">
		<div class="col-md-12">
			<s:actionmessage theme="jquery" />
		</div>
	</div>
	<br />
	<div class="row">
		<div class="col-md-12">

			<table class="table table-hover table-bordered" id="tblCategoriaHardware">
				<thead>
					<tr>
						<th>Nombre</th>
						<th>Descripción</th>
						<th>Acciones</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="listaCategoriaHardware" var="categoriaHardware">
						<tr>
							<td><s:property value="nombre" /></td>
							<td><s:property value="descripcion" /></td>
							<td><div align="center">
									<a
										href="${pageContext.request.contextPath }/categoriaHardware/gestionar-categoria-hardware/${idCategoriaHardware}/edit">
										<img height="20" width="20"
										src="${pageContext.request.contextPath}/images/icons/update.png"
										title="Modificar categoria hardware" />
									</a> <a
										href="${pageContext.request.contextPath }/categoriaHardware/gestionar-categoria-hardware/${idCategoriaHardware}/deleteConfirm">
										<img style="padding-left: 10px;" height="20" width="30"
										src="${pageContext.request.contextPath}/images/icons/delete.png"
										title="Eliminar categoria hardware" />
									</a>
								</div></td>
						</tr>
					</s:iterator>

				</tbody>
			</table>
		</div>
		<div class="row">
			<div align="center">
				<button
					onclick="location='${pageContext.request.contextPath}/categoriaHardware/gestionar-categoria-hardware/new'"
					class="btn-primary btn" type="button">Agregar</button>
			</div>
		</div>
	</div>
</body>
	</html>
</jsp:root>